home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / LCLINT-D.SPK / lclint / guide / fig12-out < prev    next >
Encoding:
Text File  |  1996-08-26  |  2.9 KB  |  50 lines

  1. LCLint 2.2 --- 25 Aug 96
  2.  
  3. exposure.c: (in function employee_getName)
  4. <A HREF="exposure.c.html#line6" target="source">exposure.c:6,10</A>: Function returns reference to
  5.                     parameter e: e->name
  6.   The returned value shares storage with a parameter
  7.   or global. If a parameter is to be returned, use the
  8.   returned qualifier. If the result is not modified,
  9.   use the observer qualifier on the result type.
  10.   Otherwise, exposed can be used, but limited checking
  11.   is done. (-retalias will suppress message)
  12. <A HREF="exposure.c.html#line6" target="source">exposure.c:6,10</A>: Return value exposes rep of employee:
  13.                     e->name
  14.   The return value shares storage with an instance of
  15.   an abstract type. This means clients may have access
  16.   to a pointer into the abstract representation. Use
  17.   the observer qualifier to return exposed storage
  18.   that may not be modified by the client. Use the
  19.   exposed qualifier to return modifiable (but not
  20.   deallocatable) exposed storage (dangerous).
  21.   (-retexpose will suppress message)
  22. <A HREF="exposure.c.html#line6" target="source">exposure.c:6,18</A>: Released storage e->name reachable
  23.                     from parameter at return point
  24.   Memory is used after it has been released (either by
  25.   passing as an only param or assigning to and only
  26.   global. (-usereleased will suppress message)
  27.    <A HREF="exposure.c.html#line6" target="source">exposure.c:6,10</A>: Storage e->name is released
  28. exposure.c: (in function employee_capName)
  29. <A HREF="exposure.c.html#line23" target="source">exposure.c:23,3</A>: Suspect modification of observer
  30.                     name: *name = toupper(*name)
  31.   Storage declared with observer is possibly modified.
  32.   Observer storage may not be modified. (-modobserver
  33.   will suppress message)
  34. <A HREF="exposure.c.html#line4" target="source">exposure.c:4,1</A>: Function employee_getName exported but
  35.                    not declared in header file
  36.   A declaration is exported, but does not appear in a
  37.   header file. (-exportheader will suppress message)
  38.    <A HREF="exposure.c.html#line7" target="source">exposure.c:7,1</A>: Definition of employee_getName
  39. <A HREF="exposure.c.html#line10" target="source">exposure.c:10,1</A>: Function employee_obsName exported
  40.                     but not declared in header file
  41.    <A HREF="exposure.c.html#line11" target="source">exposure.c:11,19</A>: Definition of employee_obsName
  42. <A HREF="exposure.c.html#line14" target="source">exposure.c:14,1</A>: Function employee_exposeName exported
  43.                     but not declared in header file
  44.    <A HREF="exposure.c.html#line15" target="source">exposure.c:15,19</A>: Definition of employee_exposeName
  45. <A HREF="exposure.c.html#line18" target="source">exposure.c:18,1</A>: Function employee_capName exported
  46.                     but not declared in header file
  47.    <A HREF="exposure.c.html#line24" target="source">exposure.c:24,1</A>: Definition of employee_capName
  48.  
  49. Finished LCLint checking --- 8 code errors found
  50.